#include "stm32f10x.h"                  // Device header
#include "OLED.h"
#include "LED.h"
#include "UART.h"
#include "Timer.h"
#include "Ultrasonic.h"
#include <stdio.h>

float distance = 0.00;

int main(void)
{
	OLED_Init();
	LED_Init();
	Timer_Init();
	Ultrasonic_Init();
	UART_Init();
	OLED_ShowString(2,1,"Hello,ZYF!");
	
	while(1)
	{
		distance = UltrasonicGetDistance();
		printf("The Distance is:%.2f cm\r\n", distance);
	}
}
